﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="user_Login" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <style type="text/css">
        .auto-style1 {
            height: 660px;
            margin-bottom: 0px;
        }
        .auto-style2 {
            margin-left: 455px;
            margin-top: 137px;
        }
        .auto-style3 {
            width: 100%;
        }
        .auto-style4 {
            margin-left: 7px;
            margin-top: 22px;
        }
        .auto-style5 {
            margin-left: 0px;
        }
        .auto-style6 {
            height: 65px;
            font-size: large;
        }
        .auto-style7 {
            height: 40px;
        }
        .auto-style10 {
            height: 360px;
            width: 412px;
        }
        .auto-style11 {
            margin-left: 35px;
        }
    </style>
</head>
<body style="height: 660px">
    <form id="form1" runat="server">
        <div class="auto-style1" style="background-image: url('../picture/bg1.jpg')" >
            <table class="auto-style3">
                <tr>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td>
                        <asp:Login ID="Login1" runat="server" BackColor="#F7F7DE" BorderColor="#CCCC99" BorderStyle="Solid" BorderWidth="1px" CssClass="auto-style2" Font-Names="Verdana" Font-Size="10pt" Height="360px" OnAuthenticate="Login1_Authenticate" Width="100px">
                            <LayoutTemplate>
                                <table cellpadding="1" cellspacing="0" style="border-collapse:collapse;">
                                    <tr>
                                        <td>
                                            <table cellpadding="0" class="auto-style10">
                                                <tr>
                                                    <td align="center" class="auto-style6" colspan="2" style="color:White;background-color:#6B696B;font-weight:bold;">登录</td>
                                                </tr>
                                                <tr>
                                                    <td align="right">
                                                        <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">用户名:</asp:Label>
                                                    </td>
                                                    <td>
                                                        <asp:TextBox ID="UserName" runat="server" Height="30px" CssClass="auto-style11"></asp:TextBox>
                                                        <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName" ErrorMessage="必须填写“用户名”。" ToolTip="必须填写“用户名”。" ValidationGroup="Login1">*</asp:RequiredFieldValidator>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="right">
                                                        <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">密码:</asp:Label>
                                                    </td>
                                                    <td>
                                                        <asp:TextBox ID="Password" runat="server" Height="30px" TextMode="Password" CssClass="auto-style11"></asp:TextBox>
                                                        <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password" ErrorMessage="必须填写“密码”。" ToolTip="必须填写“密码”。" ValidationGroup="Login1">*</asp:RequiredFieldValidator>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="auto-style7" colspan="2">
                                                        <asp:CheckBox ID="RememberMe" runat="server" Text="下次记住我。" />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="center" colspan="2" style="color:Red;">
                                                        <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="right" colspan="2">
                                                        <asp:Button ID="LoginButton" runat="server" CommandName="Login" CssClass="auto-style5" OnClick="LoginButton_Click" Text="登录" ValidationGroup="Login1" Width="131px" />
                                                        <asp:Button ID="zhuce" runat="server" CssClass="auto-style4" OnClick="zhuce_Click" PostBackUrl="~/user/Register.aspx" Text="注册" Width="129px" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </LayoutTemplate>
                            <TitleTextStyle BackColor="#6B696B" Font-Bold="True" ForeColor="#FFFFFF" />
                        </asp:Login>
                    </td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>
